﻿namespace MyAbpCodeArtCore.Web.Tests
{
    using Abp.AspNetCore.TestBase;
    using Abp.EntityFrameworkCore.Configuration;
    using Abp.Modules;
    using Abp.Reflection.Extensions;
    using FFF.Test.DataAccess.Framework;
    using FFF.Test.DataAccess.Framework.Configuration;
    using FFF.Test.Startup;

    [DependsOn(
        typeof(YdmAbpWebModule),
        typeof(AbpAspNetCoreTestBaseModule)
        )]
    public class MyAbpCodeArtCoreWebTestModule : AbpModule
    {
        public override void PreInitialize()
        {
            base.Configuration.UnitOfWork.IsTransactional = false;
        }

        public override void Initialize()
        {
            base.IocManager.RegisterAssemblyByConvention(typeof(MyAbpCodeArtCoreWebTestModule).GetAssembly());
        }
    }
}